<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>运营平台</title>
	<import type="css" basepath="__CSS__" file="bootstrap" />
	<import type="css" basepath="__CSS__" file="datetimepicker" />
	<import type="css" basepath="__CSS__" file="fontawesome" />
	<import type="css" basepath="__CSS__" file="fonts" />
	<import type="css" basepath="__CSS__" file="bootgrid" />
	<import type="css" basepath="__CSS__" file="style" />
	<import type="css" basepath="__CSS__" file="newStudentWeb" />
		
</head>
<body>
<div class="topNav">
    <span class="text"><i class="iconfont">&#xe607;</i><a href="{:U('Index/index')}" target="_top" >首页</a>&gt;<span>商家管理</span>&gt;<span>商家详情</span></span>
</div>
    <div class="pageTitle">
        <h2 class="title">信息列表</h2>
    </div>


<div class="formBoxOne">
    <form>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">商铺号</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" name='id' readonly="readonly" value="{$dataInfo.id}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">商家类型</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.shop_name}">
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">手机号</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.phone}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">银行卡</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.bankcard}">
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">开户网店</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.bank_branch}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">大学</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.school}">
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">店内电话</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.telephone}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">注册时间</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.add_time|date='Y-m-d',###}"> 
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">商铺名</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.shop_name}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">店主姓名</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.keeper}">
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">身份证号</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.idcard}"> 
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">开户行</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.bank}">
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">所在地</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.provin}{$dataInfo.city}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">详细地址</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.address}">
                </div>
            </div>
        </div>
        <div class="line">
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">营业时间</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" readonly="readonly" value="{$dataInfo.start_time}-{$dataInfo.end_time}">
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-6">
                <span class="name w100">扣点</span>
                <div class="col-md-8 col-sm-8 col-xs-8">
                    <input type="text" class="inpTextOne form-control" name="kd" value="{$dataInfo.point}" id='kd'>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="detailsBusinessLicensi">
    <div class="pageTitle">
        <h2 class="title">营业执照</h2>
    </div>
    <div class="businessLicensi">
        <img src="/Uploads/lien/{$dataInfo.liencepic}"/>
		
    </div>
    <div class="businessLicensiBtn">
        <div class="btnMiddle">
            <button type="button" class="btn btn-danger btn-lg" cid='{$dataInfo.id}'>保存</button>
			
            <if condition="$item.buss_status eq 1 ">
            <button type="button" class="btn btn-primary  btn-lg" data-text="请确认是否进行审核" style="display:none;">审核</button>
            <else/>
            <button type="button" class="btn btn-primary  btn-lg" data-text="请确认是否进行审核！" data-type="submit" id='sh'>审核</button>
            </if>
			 
			 
            <a href="{:U('ShopMange/index')}"><button type="button" class="btn btn-warning btn-lg">返回</button></a>
        </div>
    </div>
</div>

</div>
<!--提示模态框 begin-->
<div class="modal fade" id="popupPrompt">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <p class="text"></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-info" data-dismiss="modal" cid="{$dataInfo.id}">确定</button>
                <button type="button" class="btn btn-primary"  data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<script src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script src="/App/Admin/public/js/bootstrap.min.js"></script>
<script src="/App/Admin/public/js/jquery.datetimepicker.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.min.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.fa.min.js"></script>
<script src="/App/Admin/public/js/time.js"></script>
<script src="/App/Admin/public/js/tables.js"></script>
<script src="/App/Admin/public/js/plug/gain.js"></script>
<script src="/App/Admin/public/js/form.js"></script>
<script>
    $(".btn-info ").click(function(){
        //alert(123);
        var cid=$(this).attr('cid');
       
		$.post('{:U('ShopMange/checkStatus')}',{cid:cid},function(data){
            if(data==100){
                $('#sh').css('display','none');
                alert('通过审核');
            }
        });
    })
</script>
<script>
    $(".btn-danger ").click(function(){
        //alert(123);
        var cid=$(this).attr('cid');
        var kd=$("#kd").val();
		
	  $.post('{:U('ShopMange/savePoint')}',{cid:cid,kd:kd},function(data){
            if(data==100){
                alert('保存成功');
            }else{
                alert('保存失败');
            }
        });
    })
    
</script>

</body>
</html>